var express = require('express');
var app = express();
var env = process.env.NODE_ENV || 'development';
// var bodyParser = require('body-parser')
// parse application/x-www-form-urlencoded
// app.use(bodyParser.urlencoded({limit:'50mb',extended: false }))

// parse application/json
// app.use(bodyParser.json({limit:'50mb'}))

// app.set('static', __dirname + '/build');
app.engine('html', require('ejs').renderFile);  
app.set('view engine', 'html');
// app.set('views', __dirname + '/views');
app.use(express.static('build'));
app.get('/',function(req,res,next){
  res.render('index',{a: 'abc'})
})

app.listen(3000,function(){
  console.log('app listen at 3000')
})